import request from '@/utils/request'
//获取职位列表
export const getJobListAPI = (pageNo,pageSize)=>request.get(`/job/getJobList?pageNo=${pageNo}&pageSize=${pageSize}`)
//添加职位
export const AddJobAPI = (data)=>{
    if(data.id) {
        return request.put(`/job/updateJobContent?id=${data.id}`,data)
    }else {
        return request.post('/job/addJob',data)
    }
}
//获取职位详情
export const getJobDetailAPI = (id)=>request.get(`/job/getJobDetail?id=${id}`)
//给职位添加权限
export const addJobPermissionAPI = (data)=>request.post('/job/addMenuToJob',data)
//删除职位
export const deleteJobAPI = (id)=>request.delete(`/job/deleteJob?id=${id}`)